defineClass('test.twoViewController', {
    viewDidLoad: function() {
	    self.ORIGviewDidLoad();
        require("UIButton,UIView,UIColor");
        var btn = UIButton.buttonWithType(1);
		btn.setBackgroundColor(UIColor.redColor());
		btn.setTitle_forState('快点击我',0);
		btn.addTarget_action_forControlEvents(self,'btnClick',1 << 6);
        btn.setFrame({x:100,y:100,width:120,height:60});
        self.view().addSubview(btn);
        console.log('js viewDidLoad 方法被更改')
    },
    btnClick: function() {
	    console.log('点击了按钮')
	    require("threeViewController")
	    var threeVC = threeViewController.alloc().init();
		self.navigationController().pushViewController_animated(threeVC,1);
    },
    touchesBegan_withEvent:function(touches, event) {
        self.ORIGtouchesBegan_withEvent(touches, event);
        console.log('用户点击了屏幕。');
    },
    lock: function() {
	    self.ORIGlock();
        console.log('js lock 方法被更改');
    }
})
defineClass('test.threeViewController : UIViewController', {
	viewDidLoad: function() {
		self.super().viewDidLoad();
	}
})
